package com.mstore.dao;

import java.util.List;

import com.mstore.pojo.ScoreDeleteLog;


/**
 * 
 *分店管理员积分误操作的记录
 *
 */
public class ScoreDeleteLogDao extends SuperDao{
	
	public void save(ScoreDeleteLogDao scoreDeleteLogDao) {
		super.save(scoreDeleteLogDao);
	}
	
	/**
	 * 
	 * 查找单条会员积分信息
	 */
	public Object findById(ScoreDeleteLog scoreDeleteLog){
		String hql = "from ScoreDeleteLogDao where id=?";
		List<Object> objects = super.getObject(hql,new Object[] { scoreDeleteLog.getId() });
		if (objects.size() > 0) {
			return objects.get(0);
		} else {
			return null;
		}
	}
	
}
